﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Web.App.Infrastructure.ApplicationMessages.Contracts;

namespace Web.App.Infrastructure.ApplicationMessages.Implementation
{
    public class WarningMessage : DomainMessage
    {
        private readonly IEnumerable<IWarning> warnings;

        public WarningMessage(IEnumerable<IWarning> warnings,string context, string action, string messageKey) : base(context, action, messageKey)
        {
            this.warnings = warnings;
        }

        public IEnumerable<IWarning> Warnings
        {
            get { return warnings; }
        }
    }
}
